package com.myprocessing.box.button.group;

import java.util.List;

import com.myprocessing.box.button.Button;

public class RadioButtonManager{

	private List<RadioButton> buttons;

	public void onMousePress(Button button) {
		for (RadioButton groupButton : buttons) {
			if (!button.equals(groupButton)) {
				groupButton.deselect();
			}
		}
	}

	public List<RadioButton> getButtons() {
		return buttons;
	}

	public void setButtons(List<RadioButton> buttons) {
		this.buttons = buttons;
	}
}
